home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue50 / Clinic / CLIPCMPU.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1999-08-16  |  785 b   |  45 lines

  1. unit Clipcmpu;
  2.  
  3. interface
  4.  
  5. uses
  6.   SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  7.   Forms, Dialogs, StdCtrls, ExtCtrls;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     Panel1: TPanel;
  12.     Edit1: TEdit;
  13.     Label1: TLabel;
  14.     Image1: TImage;
  15.     Button1: TButton;
  16.     procedure Button1Click(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   Form1: TForm1;
  25.  
  26. implementation
  27.  
  28. {$R *.DFM}
  29.  
  30. uses
  31.   ClipHelp;
  32.  
  33. procedure TForm1.Button1Click(Sender: TObject);
  34. begin
  35.   ClipBoardSetComponents([Label1, Edit1, Image1]);
  36.   Label1.Name := '';
  37.   Edit1.Name := '';
  38.   Image1.Name := '';
  39.   ClipBoardGetComponents(Self, Self)
  40. end;
  41.  
  42. initialization
  43.   RegisterClasses([TImage, TEdit, TLabel])
  44. end.
  45.